<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>XMS AE-API</title>
<link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css">
<link rel="stylesheet" href="/css/global.css">
<link href="/css/font-awesome.min.css" rel="stylesheet">
<link href="/css/jquery-confirm.min.css" rel='stylesheet' type='text/css' />
<script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
<script src="/js/jquery-confirm.min.js"></script>
<script src="/plugin/My97DatePicker/WdatePicker.js"></script>
<script src="/js/common.js"></script>
</head>
<body>
	 <div class="wrapper">
	<%@include file="inc/menu-nav.jsp" %>
	
<aside class="main-sidebar">
	<!-- sidebar: style can be found in sidebar.less -->
	<section class="sidebar">

		<!-- /.search form -->
		<i class="iconfont icon-sanshuxian sidebar-toggle" data-toggle="offcanvas" role="button"></i>
		<ul class="sidebar-menu">
			<li class="active treeview">
				<a href="index.html"><i class="iconfont icon-logoued"></i> <span>UED详细介绍</span></a>
			</li>
			<li>
				<a href="layout.html"><i class="iconfont icon-layout"></i> <span>页面布局规范</span></a>
			</li>
			<li>
				<a href="color.html"><i class="iconfont icon-color"></i> <span>标准颜色规范</span></a>
			</li>
			<li>
				<a href="font.html"><i class="iconfont icon-font"></i> <span>标准字体规范</span></a>
			</li>
			<li>
				<a href="padding.html"><i class="iconfont icon-padding"></i> <span>界面元素间距规范</span></a>
			</li>
			<li>
				<a href="table.html"><i class="iconfont icon-table"></i> <span>常用表格</span></a>
			</li>
			<li>
				<a href="validate.html"><i class="iconfont icon-xiaoyan"></i> <span>表单校验</span></a>
			</li>
			<li>
				<a href="autoCompleter.html"><i class="iconfont icon-guanli"></i> <span>输入框自动联想</span></a>
			</li>
			<li class="treeview">
				<a href="#"><i class="iconfont icon-form"></i> <span>表单设计规范</span><i class="iconfont icon-more pull-right"></i></a>
				<ul class="treeview-menu">
					<li>
						<a href="form_layer.html"><i class="iconfont icon-yuanxingweixuanzhong"></i>通用双向联动表单布局</a>
					</li>
					<li>
						<a href="accross_page_check.html"><i class="iconfont icon-yuanxingweixuanzhong"></i>跨页全选交互</a>
					</li>
				</ul>
			</li>
			<li class="treeview">
				<a href="#"><i class="iconfont icon-component24"></i> <span>组件引用规范</span><i class="iconfont icon-more pull-right"></i></a>
				<ul class="treeview-menu">
					<li>
						<a href="component.html"><i class="iconfont icon-yuanxingweixuanzhong"></i>表单通用组件</a>
					</li>
					<li>
						<a href="component_control_sidebar.html"><i class="iconfont icon-yuanxingweixuanzhong"></i>侧边栏</a>
					</li>
					<li>
						<a href="info_box.html"><i class="iconfont icon-yuanxingweixuanzhong"></i>信息框</a>
					</li>
				</ul>
			</li>
			<li class="treeview">
				<a href="#popUp"><i class="iconfont icon-widget-fullcolumn"></i> <span>弹层规范</span><i class="iconfont icon-more pull-right"></i></a>
				<ul class="treeview-menu">
					<li>
						<a href="complexPopUp.html"><i class="iconfont icon-yuanxingweixuanzhong"></i>复杂双栏交互弹窗布局</a>
					</li>
				</ul>
			</li>
			<li>
				<a href="popup_layer.html"><i class="iconfont icon-yicaozuo"></i> <span>操作交互弹出层</span></a>
			</li>
			<li>
				<a href="info_layer.html"><i class="iconfont icon-ui"></i> <span>信息提示弹层</span></a>
			</li>
			<li>
				<a href="icon.html"><i class="iconfont icon-icon"></i> <span>图标引用规范</span></a>
			</li>
			<li>
				<a href="plugins.html"><i class="iconfont icon-478chajianku"></i><span> 插件</span></a>
			</li>
			<li>
				<a href="browsers.html"><i class="iconfont icon-iconfont"></i><span> 浏览器支持</span></a>
			</li>
			<li>
				<a href="tmpl.html"><i class="iconfont icon-example"></i><span> 模板页面</span></a>
			</li>
			<li>
				<a href="download.html"><i class="iconfont icon-down"></i><span>下载UED</span></a>
			</li>
		</ul>

	</section>
	<!-- /.sidebar -->
</aside>
	
	<div class="container create-order">
		<h3 class="head-title">日志查询</h3>
		<form class="form-inline form-group" action="/order/log">
			<p>
				<div class="form-group">
					<label for="startTime">时间：</label>
					<input type="text" class="form-control" readonly name="startTime" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" id="startTime" value="${param.startTime }">
					<label> - </label>
					<input type="text" class="form-control" readonly name="endTime" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" id="endTime" value="${param.endTime }">
				</div>
			</p>
			<div class="form-group">
				<label for="orderNo">单号：</label>
				<input type="text" class="form-control" name="orderNo" id="orderNo" placeholder="支持订单号、运单号" value="${param.orderNo }">
			</div>
			<div class="form-group">
				<label for="result">结果：</label>
				<select class="form-control" name="result" id="result">
					<option value="">-- 全部 --</option>
					<option value="Y"
					<c:if test="${param.result eq 'Y' }">
						selected="selected"
					</c:if>
					>成功</option>
					<option value="N"
					<c:if test="${param.result eq 'N' }">
						selected="selected"
					</c:if>
					>失败</option>
				</select>
			</div>
			<div class="form-group">
				<label for="system">系统：</label>
				<select class="form-control" name="system" id="system">
					<option value="">-- 全部 --</option>
					<option
					<c:if test="${param.system eq 'XMS' }">
						selected="selected"
					</c:if>
					>XMS</option>
					<option
					<c:if test="${param.system eq 'CRM' }">
						selected="selected"
					</c:if>
					>CRM</option>
					<option
					<c:if test="${param.system eq 'PDS' }">
						selected="selected"
					</c:if>
					>PDS</option>
				</select>
			</div>
			<div class="form-group">
				<button type="submit" class="btn btn-primary"><i class="icon-search"></i> 查询 </button>
			</div>
		</form>
		<table class="table">
			<tr>
				<th>#</th>
				<th>订单号</th>
				<th>运单号</th>
				<th>日志类型</th>
				<th>请求时间</th>
				<th>响应时间</th>
				<th>调用结果</th>
				<th>操作</th>
			</tr>
			<c:forEach items="${invokeLogList }" var="log" varStatus="status">
				<tr>
					<td>${status.index+1 }</td>
					<td>${log.customerOrderNo }</td>
					<td>${log.serverOrderNo }</td>
					<td>${log.logType }</td>
					<td><fmt:formatDate value="${log.requestTime}" pattern="MM-dd HH:mm:ss"/></td>
					<td><fmt:formatDate value="${log.responseTime}" pattern="MM-dd HH:mm:ss"/></td>
					<td>${log.invokeResult }</td>
					<td><a href="/order/log/detail?id=${log.id }" target="_blank">查看详情</a></td>
				</tr>
			</c:forEach>
		</table>
	</div>
	</div>
</body>
<script type="text/javascript">
	
</script>
</html>